<?php
    session_start();
    if (!isset($_SESSION['frmEmail_token'])):
            $_SESSION['frmEmail_token']= mt_rand();
    endif;
?>
<script>
    $(':input[placeholder]').placeholder();
</script>

<h1 class="name">Milan </h1><h1 class="name">Frydrych</h1><br/>
<br/>
<h2 class="mail">Mail: </h2><br/>
<br/>

<div id="frmDiv">
    <form id="frmEmail" method="POST" action="./action/actSendEmail.php">
        <fieldset id="fldEmail">
            <legend>Napište mi</legend><br/>
            <!--<label for="txtName">Jméno</label>-->
            <input type="text" name="txtName" placeholder="Jméno" /><br/>
            <!--<label for="txtEmail">Email</label>-->
            <input type="text" name="txtEmail" placeholder="Email" /><br/>
            <!--<label for="txtSubject">Předmět</label>-->
            <input type="text" name="txtSubject" placeholder="Předmět" /><br/>
            <input type="hidden" name="spam" value="<?php echo $_SESSION['frmEmail_token'];?>"/>
            <!--<label for="txtBody">Zpráva</label>-->
            <textarea name="txtBody" rows="4"></textarea><br/>
            <button type="submit" name="cmdSend">Odeslat</button>    
        </fieldset>
    </form>
</div>